package com.jiazhong.basic.pack0316.thread;

public class DemoE2 implements Runnable{

    private DemoE e;

    public DemoE2(DemoE e) {
        this.e = e;
    }

    @Override
    public void run() {
        for (int i = 1; i < 3; i++) {
            e.change();
           /* // 暂停2s
            try {
                Thread.sleep(2000); // 1s===1000毫秒ms
            } catch (InterruptedException ex) {
                throw new RuntimeException(ex);
            }*/
        }
    }
}
